package com.hdax.easybuy.controller;


import com.hdax.easybuy.api.UserServiceClient;
import com.hdax.easybuy.entity.User;
import com.hdax.easybuy.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserManagerController {
    @Autowired
    private UserServiceClient userServiceClient;

    @RequestMapping("/user/getAll")
    public List<User> getAll() {
        return userServiceClient.queryAll();
    }

}
